import request from "@/utils/request";

export function login(data: { phone: string; password: string }) {
  return request({
    url: "/api/v1/auth/login",
    method: "post",
    data,
  });
}

export function register(data: {
  phone: string;
  password: string;
  realName: string;
}) {
  return request({
    url: "/api/v1/auth/register",
    method: "post",
    data,
  });
}
